<?php
class Dmf_Form_Element_Empty extends Dmf_Form_Element
{
    private $_elements = array();
    
    public function addElements( $elements )
    {
        foreach( $elements as &$element )
        {
            $element = $this->form->element( $element );
        }
        
        $this->_elements = $elements;
        
        return $this;
    }
    
    public function getElements()
    {
        return $this->_elements;
    }
    
    public function getContent()
    {
        $value = '';
        
        foreach( $this->_elements as $element )
        {
            $value .= $this->form->element( $element )->render();
        }
        
        $this->setAttr( 'value', $value );
        
        return '%value%';
    }
}